package com.sx.pipeline.custom.dialog

import android.annotation.SuppressLint
import com.lxj.xpopup.impl.ConfirmPopupView
import com.sx.mvvmlibs.base.ViewBindingBaseActivity

/**
 * @Author: YY
 * @Date: 2022/5/23
 * @Description: TODO
 */
@SuppressLint("ViewConstructor")
class CustomInterceptorPopup(val activity: ViewBindingBaseActivity<*,*>): ConfirmPopupView(activity, 0) {

    override fun onCreate() {
        isHideCancel = true
        super.onCreate()
    }

    override fun doAfterShow() {
        super.doAfterShow()
        activity.mPopMap[0] = this
    }

    override fun beforeDismiss() {
        super.beforeDismiss()
        activity.mPopMap.clear()
    }
}